package com.example.service.impl;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.write.metadata.style.WriteCellStyle;
import com.alibaba.excel.write.style.HorizontalCellStyleStrategy;
import com.example.domain.DeptEntity;
import com.example.domain.DeptHrmRelationEntity;
import com.example.domain.lcxlv.OALcxlFinalEntity;
import com.example.domain.lcxlv.PeoInfo;
import com.example.domain.xsrb.OAXsrbFinalEntity;
import com.example.domain.xsrb.OAXsrbMainEntity;
import com.example.domain.xsrb.OAXsrbTodayEntity;
import com.example.domain.xsrb.OAXsrbYesterdayEntity;
import com.example.mapper.OALcxlMapper;
import com.example.mapper.OAXsrbMapper;
import com.example.service.OALcxlService;
import com.example.service.OAXsrbService;
import com.example.utils.config.CommonConfig;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
@Transactional
@Slf4j
public class OALcxlServiceImp implements OALcxlService {

	@Autowired
	OALcxlMapper mapper;

	@Override
	public List<OALcxlFinalEntity> queryLcxl(String[] departmentIds, String startData, String endData) {
		return mapper.querylcxl(departmentIds, startData, endData);
	}

	@Override
	public List<DeptEntity> getDeptlist() {
		return mapper.getDeptlist();
	}

//	@Override
//	public List<DeptHrmRelationEntity> getPeoplelist(String[] departmentIds) {
//		return mapper.getPeoplelist(departmentIds);
//	}

	@Override
	public List<PeoInfo> getPeoInfo() {
		return mapper.getPeoInfo();
	}
}
